package com.hyy.api.domain.provider.bo;

import com.hyy.api.domain.provider.ProvApiProgram;
import com.hyy.common.mybatis.core.domain.BaseEntity;
import com.hyy.common.core.validate.AddGroup;
import com.hyy.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 上游供应商连接程序业务对象 prov_api_program
 *
 * @author ruoyi
 * @date 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProvApiProgram.class, reverseConvertGenerate = false)
public class ProvApiProgramBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 备注
     */
    private String memo;

    /**
     * 接口程序参数模板
     */
    private List<ProvApiProgramTemplateBo> templateParams;


}
